/**
 * 
 * 对应的逻辑代码
 */
const inquirer = require('inquirer')
const {framework} = require('../../config')
const downloadGit = require('./download')
const myaction = (project, args) => {
    //命令行的执行逻辑代码
    // console.log(project, args)
    //express koa egg
    inquirer.default.prompt([
        {type:'list',
            name:'framework',
            choices:framework,
            message:'请选择你要使用的框架'
        }
    ]).then((answer)=>{
        downloadGit(answer,project)
    })
}

module.exports = myaction